Repository navigation
Conversation
|
Thanks for this. I checked out Conventions match three.js. I checked them numerically (a 1000-sample Node script) over random directions and random
Changing rotation or intensity in the live view decodes the whole panorama again.
None of these three values changes a texel or the CDF. They only change Two ways to fix it:
A small test would protect the fix: change only Checks I ran on
Drafted with AI assistance. |
…ironment Co-authored-by: Cursor <cursoragent@cursor.com>
Closes #178.
Blender-exported equirectangular OpenEXR files can now drive the native renderer's lighting, reflections, and visible sky. The renderer decodes OpenEXR and Radiance HDR into linear float texels and uses the existing environment importance sampler. The panorama lookup and the importance sampler apply the same Y-axis rotation.
HDRIEnvironment.intensityscales the visible sky and the lighting.skyLightIntensityscales lighting and reflections independently.scene.backgroundstill accepts a solid color, andscene.backgroundPanoramaaccepts a secondHDRIEnvironmentwith its own intensity and rotation for camera rays.Verification
skyLightIntensitythe spheres went dark and the camera sky retained its radiance.cargo build --locked --bin threert-render,cargo test --locked --lib(200 passed, 6 ignored), andcargo check --locked --lib --target wasm32-unknown-unknownfromrenderer/.npm run typecheckandnpm test(165 passed, 1 skipped because the optional physics WASM artifact was absent).